package com.tedu.springdemo.day04;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 懒加载
 */
@Lazy
@Component
public class Person2 {
    public Person2(){
        System.out.println("Person2构造器"+this);
    }
}